package com.tangyuan.ai.mapper;

import com.alibaba.cloud.nacos.refresh.NacosRefreshHistory;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.toolkit.Constants;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.tangyuan.ai.entity.model.AiModel;
import com.tangyuan.ai.entity.vo.AiModelVo;
import org.apache.ibatis.annotations.Param;

public interface AiModelMapper extends BaseMapper<AiModel> {
    AiModel getAiModelByModelName(String modelName, Integer id);

    Page<AiModelVo> getPageAiModel(Page page,@Param(Constants.WRAPPER) QueryWrapper<AiModel> wrapper);
}
